package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.ReceiveOrderDO;
import com.ssy.lingxi.order.entity.ReceiveOrderProductDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 *  送货单-物理信息Jpa仓库
 * @author ds
 * @date 2022/3/24
 * @version 2.0.0
 */
@Repository
public interface ReceiveOrderProductRepository extends JpaRepository<ReceiveOrderProductDO, Long>, JpaSpecificationExecutor<ReceiveOrderProductDO> {

    @Transactional
    void deleteByReceiveOrder(ReceiveOrderDO order);
}
